.layui-dropdown {
    border-radius: var(--global-border-radius);
}

.layui-input {
    border-radius: var(--global-border-radius);
}

.layui-form-onswitch {
    background-color: var(--global-primary-color) !important;
}

.layui-form-onswitch {
    border-color: var(--global-primary-color);
}

.layui-form-radio:hover>*,
.layui-form-radioed>i,
.layui-form-radioed {
    color: var(--global-primary-color) !important;
}

.layui-form-checked[lay-skin=primary]>i {
    border-color: var(--global-primary-color) !important;
    background-color: var(--global-primary-color);
    color: #fff;
}

.layui-form-checkbox[lay-skin=primary]>.layui-icon-indeterminate,
.layui-form-checkbox[lay-skin=primary]>.layui-icon-indeterminate:hover {
    border-color: var(--global-primary-color);
}

.layui-form-checkbox[lay-skin=primary]>.layui-icon-indeterminate:before {
    background-color: var(--global-primary-color);
}

.layui-btn {
    background-color: var(--global-primary-color);
}

.layui-btn.layui-btn-primary:hover {
    border: 1px solid var(--global-primary-color);
}

.layui-btn.layui-btn-normal {
    background-color: #1e9fff !important;
}

.layui-btn.layui-btn-danger {
    background-color: #ff5722 !important;
}

.layui-btn.layui-btn-warm {
    background-color: #ffb800 !important;
}

.layui-btn.layui-btn-primary {
    background-color: transparent !important;
    color: #5f5f5f !important;
}

.layui-card {
    border-radius: var(--global-border-radius);
}

.layui-timeline-axis {
    color: var(--global-primary-color);
}

.layui-table-checked {
    background-color: #f8f8f8;
}

/* input框选中颜色 */
.layui-input:focus, .layui-textarea:focus {
    border-color: var(--global-primary-color) !important;
    /* 这种写法暂时不支持火狐，找不到更好的写法了 */
    box-shadow: 0 0 0 3px rgb(from var(--global-primary-color) r g b / 8%);
}

/* select框选项颜色 */
.layui-form-select dl dd.layui-this {
    color: var(--global-primary-color);
}

/* 数字输入框后面的上下角标 */
.layui-input-wrap .layui-input:focus+.layui-input-split {
    border-color: var(--global-primary-color)
}

/* 标签框文字 */
.layui-form-checked:hover>div, .layui-form-checked>div {
    background-color: var(--global-primary-color);
}

/* 标签框选中 */
.layui-form-checked:hover>i, .layui-form-checked>i {
    color: var(--global-primary-color);
}

/* laypage按钮选中颜色 */
.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: var(--global-primary-color);
}

/* laypage第几页input选中颜色 */
.layui-laypage input:active {
    border-color: var(--global-primary-color);
}

/* laypage按钮hover颜色 */
.layui-laypage a:hover {
    color: var(--global-primary-color);
}

/* laypage每页条数select框选中颜色 */
.layui-laypage input:focus, .layui-laypage select:focus {
    border-color: var(--global-primary-color) !important;
}

/* laydate被选中的元素颜色 */
.layui-laydate .layui-this, .layui-laydate .layui-this>div {
    background-color: var(--global-primary-color) !important;
}

/* laydate范围按钮hover时的颜色 */
.layui-laydate-header i:hover, .layui-laydate-header span:hover {
    color: var(--global-primary-color);
}

/* laydate按钮hover时的颜色 */
.layui-laydate-footer span:hover {
    color: var(--global-primary-color);
}

/* 标签页选中颜色 */
.layui-tab-brief>.layui-tab-title .layui-this {
    color: var(--global-primary-color);
}

/* 标签页选中下划线颜色 */
.layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after {
    border-bottom: 2px solid var(--global-primary-color);
}

/* 进度条颜色 */
.layui-progress-bar {
    background-color: var(--global-primary-color);
}

/* tree选择框hover颜色 */
.layui-form-checkbox[lay-skin=primary]:hover>i {
    border-color: var(--global-primary-color);
}




/** 表详情顶部搜索框 Start **/

.top-search-from .layui-form-item {
    position: relative;
    display: inline-block;
    *display: inline;
    *zoom: 1;
    vertical-align: middle;
}

.top-search-from .layui-form-item .layui-input-block {
    float: left;
    width: 270px;
    margin-right: 10px;
    margin-left: 0;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.top-search-from .layui-input, .top-search-from .layui-select, .top-search-from .layui-textarea {
    width: 270px;
}

.top-search-from .item-inline .layui-form-item .layui-input-block {
    width: 270px;
}

.top-search-from .layui-form-mid {
    margin-left: 7px;
    margin-right: 7px;
}

.top-search-from .layui-form-label {
    width: 60px;
    white-space: nowrap;
}

.top-search-from .inline-block {
    width: 128px;
    display: inline-block
}

.top-search-from .layui-form-item {
    width: 370px;
}

.top-search-from .toggle-btn {
    text-align: center;
}

.top-search-from .toggle-btn a {
    cursor: pointer;
    color: #999;
}

.top-search-from .toggle-btn a:hover {
    color: #333;
}

@media screen and (max-width: 768px) {
    .top-search-from .layui-input {
        max-width: 234px;
    }

    .top-search-from .layui-input.inline-block {
        max-width: 110px;
    }

    .layui-table-tool-self .layui-inline:nth-child(3) {
        display: none;
    }
}



/*额外*/
button {
    line-height: 100% !important;
}

.pear-btn-md, .pear-btn-sm, .pear-btn-xs, .pear-btn {
    line-height: 100%;
    letter-spacing: 2px;
    padding: 0 15px;
    font-weight: 400;
    font-size: 14px;
}

.layui-layer-btn {
    padding: 0 15px 19px;
    letter-spacing: 2px;
}

.pear-btn i {
    font-size: 14px;
}

.layui-table-cell .pear-btn i {
    font-size: 15px;
}

.layui-table-tips-main {
    overflow: hidden;
}

.layui-table th {
    font-weight: 500;
}

.layui-laypage a, .layui-laypage span {
    font-size: 14px;
}

.layui-table-tool .layui-inline[lay-event], .layui-table-tool .layui-inline[lay-event]:hover {
    border: none;
}

.layui-table-tool-self .layui-icon {
    font-size: 18px;
}

.layui-table, .pear-tab .layui-tab-title li {
    color: #333;
}

.tool-btn.pear-btn-xs {
    background: transparent;
    font-weight: normal;
    font-size: 14px;
    color: #333;
    border: none;
    padding: 0 2px;
    height: auto !important;
}

.layui-iconpicker {
    max-width: 290px !important;
}

.layui-iconpicker .layui-anim {
    max-height: 220px !important;
}

.layui-input:disabled {
    color: rgba(0, 0, 0, .25);
    background: #f5f5f5;
    cursor: not-allowed;
}

.layui-form-label.required:after {
    content: "*";
    color: red;
    display: inline-block;
    padding: 7px 5px;
    line-height: 20px;
    text-align: right;
    position: absolute;
    right: 0;
    top: 5px;
}

.layui-bg-green {
    background-color: #36b368 !important;
}

a {
    cursor: pointer;
}

*[permission] {
    display: none;
}

@media screen and (max-width: 768px) {
    /**  **/
    .layui-table-tool-self .layui-inline:nth-child(3) {
        display: none;
    }
}

/** 右间隔 **/
.mr-1 {
    margin-right: 4px;
}

.mr-2 {
    margin-right: 8px;
}

.mr-3 {
    margin-right: 16px;
}

.mr-4 {
    margin-right: 24px;
}

.mr-5 {
    margin-right: 48px;
}

/** 图片尺寸 **/
.img-1 {
    max-width: 16px;
    max-height: 16px;
    border-radius: 6px;
}

.img-2 {
    max-width: 32px;
    max-height: 32px;
    border-radius: 6px;
}

.img-3 {
    max-width: 64px;
    max-height: 64px;
    border-radius: 6px;
}

.img-4 {
    max-width: 128px;
    max-height: 128px;
    border-radius: 6px;
}


